package cn.gzjp.modules.logis.entity;

import cn.binarywang.wx.miniapp.bean.WxMaUserInfo;
import cn.binarywang.wx.miniapp.util.json.WxMaGsonBuilder;

/**
 * @Author zengcp
 * @Date 2018/3/22
 */
public class UserPhone {

    private String phoneNumber;
    private String purePhoneNumber;
    private String countryCode;

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getPurePhoneNumber() {
        return purePhoneNumber;
    }

    public void setPurePhoneNumber(String purePhoneNumber) {
        this.purePhoneNumber = purePhoneNumber;
    }

    public String getCountryCode() {
        return countryCode;
    }

    public void setCountryCode(String countryCode) {
        this.countryCode = countryCode;
    }


    public static UserPhone fromJson(String json) {
        return (UserPhone) WxMaGsonBuilder.create().fromJson(json, UserPhone.class);
    }

}
